<div id="edit_project_<%= @project.id %>" class='new_or_edit'>
  <div class='form'>
  <%  remote_form_for @project,
            :update => "new_or_edit_project_#{@project.id}",
            :url => project_url(@project),
            :method => :put,
            :loading => short_loader("edit_project_#{@project.id}",:height => 166),
            :html => {
              :id => "edit_project_#{@project.id}_form"
            } do |f| %>
    <dl>
      <dt>项目名称：</dt>
      <dd><%= f.text_field :name, :size => 90 %></dd>
    </dl>
    <dl>
      <dt class='l'>合同签订于：</dt>
      <dd>
        <%= calendar_field( :project,
                :signed_on , {
                  :class => 'date'
                },{
                  :firstDay => 1,
                  :step => 1,
                  :showOthers => true
                }) %>
      </dd>
    </dl>
    <dl>
      <dt class='l'>备注：</dt>
      <dd><%= f.text_area :remark %></dd>
    </dl>
  <% end %>
  </div>
  <div class='buttons'>
    <%= link_to_function '保存',"$('edit_project_#{@project.id}_form').onsubmit()", :class => 'save button' %>
    <%= link_to_function '返回',"Effect.BlindUp('edit_project_#{@project.id}')", :class => 'go_back button' %>
  </div>
</div>